package com.example.websocket.pattern.behavioral.strategy;

public class StategyPatternDEMO {

    public static void main(String[] args) {
        Context context = new Context(new OperationAdd());
        System.out.println("10 + 5 = " + context.executeStrategy(10, 5));

        context = new Context(new OperationSubtract());
        System.out.println("10 - 5 = " + context.executeStrategy(10, 5));

        context = new Context(new OprerationMultiply());
        System.out.println("10 * 5 = " + context.executeStrategy(10, 5));
    }
}
